package Service.Impl;

import Dao.TestMapper;
import Service.TestService;
import domain.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service //生成该类的实例存到IOC容器中
public class TestServiceImpl implements TestService {

    // 注入DAO层代理对象

    @Autowired
    private TestMapper testMapper;

    @Override
    public List<Test> findAllTest() {

        List<Test> allTest = testMapper.findAllTest();
        return allTest;
    }
}
